package controllers

import (
	"gcopyright/repositories"
	"gcopyright/service"
)

type FileController struct {
	Common
}

func NewFileController() *FileController {
	return &FileController{}
}
func (f *FileController) GetFile() {
	file := service.NewFileService(f.Ctx, repositories.NewRepositoriesSqlite())
	file.ModifyFile()
	f.ReturnSuccess("yes")
}
func (f *FileController) GetDelete() {
	file := service.NewFileService(f.Ctx, repositories.NewRepositoriesSqlite())
	file.DeleteFile()
	f.ReturnSuccess("yes")
}
